﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="listuser.ascx.cs" Inherits="controls_admin_listuser" %>
<%@ Register Assembly="CollectionPager" TagPrefix="vst" Namespace="SiteUtils" %>
<div id="content">
    <!-- new box --> 
    	<div class="box corners shadow">
            <div class="box-header">
                <img src="../images/admin/contact.png" /><h2>Thành viên</h2>
                <div class="box-header-ctrls">	
                	<a href="javascript:void(null);" title="" class="close"><!-- --></a>
                </div>
            </div>                
            <div class="box-content" id="contacts-1a">
               <div class="inbox-sf">
                    <input type="text" name="" onFocus="if(this.value=='Tìm kiếm thành viên')this.value='';" onBlur="if(this.value=='')this.value='Tìm kiếm thành viên';" value="Tìm kiếm thành viên" class="input-1"/>
                    <select name="" class="select-1">
                        <option value="">Tất cả</option>
                        <option value="">Admin</option>
                        <option value="">User</option>
                    </select>
                    <input type="submit" name="" value="Tìm" class="inbox-sf-search-btn" />
                    <input type="submit" name="" value="Thêm" id="open-contacts-dialog-btn" class="inbox-sf-add-btn tip" title="Mở hộp thoại để thêm thành viên mới"/>  
                </div>                                                           
                <table id="tablesorter-contact" style="width:100%"> 
                	<thead class="contacts-head-1"> 
                        <tr> 
                            <th class="contacts-head-1-select" style="width:2%"><input class="toggle-all-cbox" name="select-all-1" type="checkbox"></th>
                            <th class="contacts-head-1-id header" style="width:4%">STT</th>
                            <th class="contacts-head-1-name header" style="width:12%">Tên đăng nhập</th>
                            <th class="contacts-head-1-name header" style="width:15%">Tên đầy đủ</th>
                            <th class="contacts-head-1-role header" style="width:9%">Quyền truy cập</th>
                            <th class="contacts-head-1-email header" style="width:20%">Email</th>
                            <th class="contacts-head-1-date header" style="width:10%">Ngày tham gia</th>
                            <th class="contacts-head-1-date header" style="width:10%">Trạng thái</th>
                            <th class="contacts-head-1-actions" style="width:7%">Thao tác</th>                        
                        </tr> 
                    </thead> 
                    <tbody class="contacts-content-1">
                        <asp:Repeater ID="rptDanhSachThanhVien" runat="server">
                            <ItemTemplate>
                                <tr> 
                                    <td class="contacts-content-1-select" style="width:2%"><input name="field-6" type="checkbox"></td>
                                    <td class="contacts-content-1-id" style="width:4%"><%= stt++%></td>
                                    <td class="contacts-content-1-name" style="width:12%"><%# Eval("TenDangNhap")%></td>
                                    <td class="contacts-content-1-name" style="width:15%"><%# Eval("TenDayDu")%></td>
                                    <td class="contacts-content-1-role" style="width:9%"><%# Eval("TenQuyen")%></td>
                                    <td class="contacts-content-1-email" style="width:20%"><%# Eval("Email")%></td>
                                    <td class="contacts-content-1-date" style="width:10%"><%# Eval("NgayThamGia","{0:dd/mm/yyyy}")%></td>
                                    <td class="contacts-content-1-date" style="width:10%"><%# (Boolean.Parse(Eval("TrangThai").ToString())==true)?"Hoạt động":"Không hoạt động"%></td>
                                    <td class="contacts-content-1-actions" style="width:7%">
                                        <a href="#" class="edit-contact gradient-btn">Sửa</a>  
                                        <a href="javascript:void(null);" class="delete-contact gradient-btn">Xóa</a>
                                    </td>                        
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>                                                                                                                                                                                                    
                    </tbody>                        
                </table>                                
                <div class="box-bt-bar">
                    <ul class="box-nav">
                        <vst:CollectionPager ID="cpDanhSachThanhVien" runat="server" 
                        BackText="« Trước&amp;nbsp;" FirstText="Đầu" LabelText="&amp;nbsp;" 
                        LastText="Cuối" NextText="&amp;nbsp; Sau »" ResultsFormat="Bạn đang xem trang {0}/{2} trang." 
                        ShowFirstLast="True" SliderSize="5" PagingMode="PostBack" 
                        BackNextDisplay="HyperLinks" BackNextLocation="Split" ResultsLocation="Bottom" 
                        >
                        </vst:CollectionPager>
                    </ul>                      
                    <%--<ul class="box-nav">
                        <li><a href="#" title="" class="prev">Trước</a></li>
                        <li><a href="#" title="" class="active">1</a></li>
                        <li><a href="#" title="" class="num">2</a></li>
                        <li><a href="#" title="" class="num">3</a></li>

                        <li><a href="#" title="" class="num">4</a></li>
                        <li><a href="#" title="" class="num">..</a></li>
                        <li><a href="#" title="" class="next">Sau</a></li>
                    </ul>--%>
                    <div class="bulk-actions">
                       <%--<select name="field-13" class="select-1">
                            <option value="">Chọn thao tác</option>
                            <option value="">Sửa</option>
                            <option value="">Xóa</option>
                        </select>--%>
                        <asp:Button ID="btnXoa" runat="server" Text="Xóa" />
                        <asp:Button ID="btnLamMoi" runat="server" Text="Làm mới" />                        
                    </div> 
                </div>                 
            </div>            
        </div>     
</div>